<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCaijiwebinfoMediaTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('caijiwebinfo_media', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('cms_id')->nullable();
            $table->text('caiji_web_url')->nullable();
            $table->text('source_url')->comment('源地址');
            $table->text('local_web_url')->comment('本地web地址');
            $table->text('cos_web_url')->nullable()->comment('云储存地址');
            $table->string('media_size')->nullable();
            $table->string('source_url_md5')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('caijiwebinfo_media');
    }
}
